﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace QRCodeBluetooth.Models
{
    public class AppAuditRecord
    {
        public int id { get; set; }
        public string ownerAddress { get; set; }
        public int ownerId { get; set; }
        public string applicationTime { get; set; }
        public string phone { get; set; }
        public int auditStatus { get; set; }
        public string auditTime { get; set; }
        public int projectId { get; set; }
        public string ownerName { get; set; }
        public string project_key { get; set; }
        public string project_name { get; set; }
        public string project_ip { get; set; }
        public string identityInf { get; set; }
    }

    public class AppVoucherInfo
    {
        public int id { get; set; }
        public string startTime { get; set; }
        public string endTime { get; set; }
        public string deviceName { get; set; }
        public int auditId { get; set; }
        public string dfloor { get; set; }
        public string pfloor { get; set; }
        public string qrcodeData { get; set; }

    }

    public class AppArea
    {
        public string project_name { get; set; }
        public int projectId { get; set; }
    }

    public class AppVoucher
    {
        public int ProjectID { get; set; }
        public string IdentityInf { get; set; }
        public string DeviceName { get; set; }
    }

    public class QRCodeVoucherInfo
    {
        public string method { get; set; }

        public List<QRCodeVoucherInfoData> data { get; set; }
        public string ProjectKey { get; set; }//项目key
    }

    public class QRCodeVoucherInfoData
    {
        public int auditid { get; set; }
        public string deviceName { get; set; }
        public string deviceNo { get; set; }
        public List<QRCodeVoucherInfoFloorInfo> floor { get; set; }
    }

    public class QRCodeVoucherInfoFloorInfo
    {

        public string startTime { get; set; }
        public string endTime { get; set; }
        public string dfloor { get; set; }
        public int pfloor { get; set; }
        public string qrcodeData { get; set; }
    }

    public class QRCodeVoucherInfoReturn
    {
        public string method { get; set; }
        public List<QRCodeVoucherInfoReturnData> data { get; set; }
        public int code { get; set; }
        public string msg { get; set; }
    }

    public class QRCodeVoucherInfoReturnData
    {
        public int auditid { get; set; }
        public string deviceName { get; set; }
        public string deviceNo { get; set; }
        public string project_key { get; set; }
        public int result { get; set; }

    }

    public class AddAuditInfo
    {
        public string method { get; set; }
        public QRCodeAuditInfoData data { get; set; }
        public string ProjectKey { get; set; }//项目key
    }

    public class QRCodeAuditInfoData
    {
        public int AuditID { get; set; }//申请记录ID
        public string OwnerName { get; set; }//业主名称
        public string OwnerAddress { get; set; }//业主地址
        public string Phone { get; set; }//联系方式
        public string ApplicationTime { get; set; }//申请时间

    }

    public class AddAuditInfoReturn
    {
        public string method { get; set; }
        public QRCodeAuditInfoReturnData data { get; set; }
        public int code { get; set; }
        public string msg { get; set; }
    }

    public class QRCodeAuditInfoReturnData
    {
        public int AuditID { get; set; }//申请记录ID
        public string ProjectKey { get; set; }//项目key
    }

    public class QRCodeAudit
    {
        public string method { get; set; }

        public List<QRCodeAuditData> data { get; set; }
        public string ProjectKey { get; set; }//项目key
    }

    public class QRCodeAuditData
    {
        public int AuditID { get; set; }//申请记录ID
        public int AuditStatus { get; set; }//审核状态
    }

    public class QRCodeAuditReturn
    {
        public string method { get; set; }

        public List<QRCodeAuditReturnData> data { get; set; }
        public int code { get; set; }
        public string msg { get; set; }
    }

    public class QRCodeAuditReturnData
    {
        public int AuditID { get; set; }//申请记录ID
        public string project_key { get; set; }
        public int result { get; set; }
    }

    public class UnSyncAudit
    {
        public string method { get; set; }
        public string ProjectKey { get; set; }//项目key
    }

    public class UpdateUnSyncAuditFlag
    {
        public string method { get; set; }
        public string ids { get; set; }
        public string ProjectKey { get; set; }//项目key
    }

    public class UnSyncAuditReturn
    {
        public string method { get; set; }

        public List<AppAuditRecord> data { get; set; }
        public int code { get; set; }
        public string msg { get; set; }
    }
}
